import request from '@/utils/request'

// 创建订单
export const createOrder = courseId => {
  return request({
    url: `/eduorder/order/createOrder/${courseId}`,
    method: 'POST'
  })
}

// 根据订单号查询订单信息
export const getOrderInfo = orderNo => {
  return request({
    url: `/eduorder/order/getOrderInfo/${orderNo}`
  })
}
